﻿namespace KinonekoSoftware.CodariaDB.Documents.DataParts.Characters
{
    public class FavoriteGroup : RootObject
    {
        private string _name;

        public required ObservableCollection<Favorite> Items { get; set; }


        public string Name
        {
            get => _name;
            set => SetValue(ref _name, value);
        }
    }

    public class Favorite : ObservableObject
    {

        private bool   _value;
        private string _title;

        public string Id { get; init; }

        public string Title
        {
            get => _title;
            set => SetValue(ref _title, value);
        }

        public bool Value
        {
            get => _value;
            set => SetValue(ref _value, value);
        }

        public bool IsImportant { get; set; }
    }
}